# Require a minimum version of cmake.
# cmake_minimum_required(VERSION <min>[...<policy_max>] [FATAL_ERROR])
cmake_minimum_required(VERSION 3.1)

# Set the name of the project.
project(facial-recognition-demo VERSION 0.0.1)

LINK_LIBRARIES( stdc++ crypto rt boost_thread pthread)

ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)
set(Boost_USE_STATIC_LIBS OFF) 
set(Boost_USE_MULTITHREADED ON)  
set(Boost_USE_STATIC_RUNTIME OFF) 

find_package(Boost 1.86.0 COMPONENTS system  thread regex log_setup log REQUIRED)
if(Boost_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
  link_directories(${Boost_LIBRARY_DIRS})
endif()

# Add an executable target called <name> to be built from the source files listed in the command invocation.
# The <name> corresponds to the logical target name and must be globally unique within a project. 
add_executable(demo src/main.cpp)
target_link_libraries(demo PUBLIC ${Boost_LIBRARIES} stdc++)